<template>
	<view>
		<view class="view-list-item" style="margin-top: 10rpx;">
			<text class="text-list-item">联系人</text>
			<input class="input-text" type="text" v-model="company" placeholder="请填写联系人姓名" />
		</view>

		<view class="view-list-item">
			<text class="text-list-item">手机号</text>
			<input class="input-text" type="text" v-model="company" placeholder="请填写联系人手机号" />
		</view>

		<view class="view-list-item">
			<text class="text-list-item">收货地址</text>
			<input class="input-text" type="text" v-model="company" placeholder="请填写收货地址" />
		</view>

		<view class="view-item">
			<text class="text-label">设置为默认地址</text>
			<view class="switch">
				<u-switch activeColor="#1D2DA7" size="22" v-model="msgNotTip" @change="messageStatuChange"></u-switch>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				msgNotTip: false

			}
		},

		methods: {
			messageStatuChange() {
				console.log("改变的状态是", this.msgNotTip)
				// if (this.msgNotTip) uni.setStorageSync("msgNotTip", true)
				// else uni.setStorageSync("msgNotTip", false)
			},
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f1f1f1;
	}

	.view-list-item {
		display: flex;
		align-items: center;
		background-color: #FFF;
		height: 100rpx;
		padding: 0 30rpx;

		.text-list-item {
			flex-grow: 1;
			flex-shrink: 1;
			font-size: 30rpx;
			color: #222;
		}

		.input-text {
			text-align: right;
			font-size: 28rpx;
		}
	}

	.view-item {
		height: 120rpx;
		background-color: #FFF;

		.text-label {
			font-size: 30rpx;
			line-height: 120rpx;
			margin-left: 30rpx;
		}

		.switch {
			display: flex;
			float: right;
			margin-right: 30rpx;
			position: relative;
			position: relative;
			bottom: -30rpx;
		}
	}
</style>
